{include file="public/header" /}



<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.ds_statmember}</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>
   <div class="fixed-empty"></div>
  <div style="width:100%; text-align:right;padding-top:10px;">
  	<input type="hidden" id="export_type" data-url="{:url(request()->controller().'/'.request()->action())}/exporttype/excel" name="export_type" data-param='{"url":"{$actionurl}&exporttype=excel"}' value="excel"/>
  	<a class="btn btn-mini" href="javascript:void(0);" id="export_btn">{$Think.lang.ds_export}Excel</a>
  </div>
  <form method="post" id="form_member">
    <table class="ds-default-table">
      <thead>
        <tr class="thead">
          <th>客户编码</th>
          <th>客户名称</th>
          <th colspan="2">{$Think.lang.member_index_name}</th>
          <th>昵称</th>
          <th class="align-center">{$Think.lang.member_index_login_time}</th>
          <th class="align-center">{$Think.lang.member_index_last_login}</th>
          <th class="align-center">{$Think.lang.member_index_points}</th>
          <th class="align-center w100">是否企业认证</th>
          <th class="align-center w100">{$Think.lang.member_index_login}</th>
        </tr>
      <tbody id="datatable">
        {notempty name="member_list"}
        {foreach name="member_list" item="v"}
        <tr class="hover member">
          <td class="w24">{$v.member_client}</td>
          <td class="w24">{$v.customer_name}</td>
          <td class="w48 picture">
            <div class="size-44x44">
              <span class="thumb size-44x44"><i></i>
                 {if condition="($v.member_avatar!='')"}
                        <img src="{:get_member_avatar($v.member_avatar)}?{:microtime()}"  width="44" height="44"/>
                  {else}
                        <img src="http://33wang.douyinhot.com/03a18202002091420493484.jpg"  width="44" height="44"/>
                  {/if}
              </span>
            </div>
          </td>

          <td>
            <p class="name">
              <strong>{$v.member_name}</strong>
               <p class="smallfont">注册时间:&nbsp;{$v.member_addtime}</p>
            </p>
              <div class="im">
                <span class="email" >
                  {if $v.member_email !=''}
                <a href="mailto:{$v.member_email}" class="tooltip yes" title="{$Think.lang.member_index_email}:{$v.member_email}">{$v.member_email}</a>
               {else /}
                <a href="JavaScript:void(0);" class="tooltip" title="{$Think.lang.member_index_null}">{$v.member_email}</a>
               {/if}
                  </span>

              </div>
          </td>
          <td>{$v.member_nickname}</td>
          <td class="align-center">{$v.member_loginnum}</td>
          <td class="w150 align-center">
            <p>{$v.member_logintime}</p>
            <p>{$v.member_login_ip}</p>
          </td>
          <td class="align-center">{$v.member_points}</td>
          <td class="align-center">
          {if condition="($v.enterprise_status=='')"}
             未认证
          {elseif condition="($v.enterprise_status!='')"}
             {$enterprise_status[$v['enterprise_status']]}
          {/if}
         </td>
          <td class="align-center">{if $v.member_state == 1}允许{else/}禁止{/if}</td> 
        </tr>
        {/foreach}
        {else /}
        <tr class="no_data">
          <td colspan="11">{$Think.lang.no_record}</td>
        </tr>
        {/notempty}
      </tbody>
    </table>
      {$show_page}
  </form>
</div>
<script src="{$Think.PLUGINS_SITE_ROOT}/statistics.js"></script>
<script>
$(function(){
    //导出图表
    $("#export_btn").click(function(){
        var item = $("#export_type");
        var type = $(item).val();
        if(type == 'excel'){
            export_xls(item.attr('data-url').replace('.html',''));
        }
    });
});
</script>